package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Bean
 * @since 2021-09-05
 */
@Data
@ApiModel("私信")
@EqualsAndHashCode(callSuper = false)
@TableName("private_message")
public class PrivateMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发送放主键
     */
    @ApiModelProperty("发送者的外键")
    @TableField("send_id")
    private Integer sendId;

    /**
     * 接收放主键
     */
    @ApiModelProperty("接收者的外键")
    @TableField("receive_id")
    private Integer receiveId;

    @ApiModelProperty("发送的内容")
    @TableField("content")
    private String content;

    /**
     * 发送信息时间
     */
    @TableField("send_time")
    private Date sendTime;


}
